package com.dly.hope.workflow;

import com.dly.hope.modle.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
* @Name: ProcessInfo
* @Description:  流程定义信息
* @Author: Danny Chen
* @Date: 2022/1/18
*/
@Entity
@Table(name = "wfl001_process_info")
@Data
@DynamicInsert
@DynamicUpdate
public class ProcessInfo extends BaseEntity {

    @Id
    @GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator")
    @GeneratedValue(generator = "uuid")
    @Column(name = "id", nullable = false)
    private String id;

    @Column(name = "name")
    private String name; //流程名称

    @Column(name = "description")
    private String description; //流程描述

    @Column(name = "module")//所属模块
    private String module;

    @Column(name = "category")
    private String category; //审批流程分类，用于首页待审批件统计情况归类展示

    @Column(name = "remark")
    private String remark; //备注

    @Column(name = "statistic_api")
    private String statisticApi; //统计待审批件的API

}
